package lhdx2;

import java.util.Scanner;

public class Yuanyin  {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        Yuan b=new Yuan();
        System.out.println("请输入半径：");
        b.r=in.nextDouble();
        double  length=b.yuanLength();
        System.out.println("这个圆的周长是："+length);
        double area=b.yuanArea();
        System.out.println("这个圆的面积是："+area);
    }
}
